package com.marco.gisdata.domain;

/**
 * GisRequestDTO.java
 * Create on 2017/5/5
 * Copyright(c) JD Inc 2017. All Rights Reserved.
 * <pre>
 * 功能说明：
 * </pre>
 */
public class GisRequestDTO {
    private Double lng;
    private Double lat;

    private String rs;
    //调用是否正常  1：正常 2：异常
    private Integer code;
    //原始数据
    private String orignAd;

    public GisRequestDTO(Builder builder) {
        this.lng = builder.lng;
        this.lat = builder.lat;
        this.rs = builder.rs;
        this.code = builder.code;
        this.orignAd = builder.orignAd;
    }

    public static class Builder {
        private Double lng;
        private Double lat;
        private String rs;
        private Integer code;
        private String orignAd;

        public Builder(Double lng, Double lat, String rs, Integer code, String orignAd) {
            this.lat = lat;
            this.lng = lng;
            this.rs = rs;
            this.code = code;
            this.orignAd = orignAd;
        }

        public GisRequestDTO build() {
            return new GisRequestDTO(this);
        }
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public String getRs() {
        return rs;
    }

    public void setRs(String rs) {
        this.rs = rs;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getOrignAd() {
        return orignAd;
    }

    public void setOrignAd(String orignAd) {
        this.orignAd = orignAd;
    }
}
